package com.my.app.base;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 80002023 on 2016/5/4.
 */
public interface IDao<K extends Serializable, V> {

    V findById(final K id);

    List<V> findAll();

    void create(final V entity);

    V update(final V entity);

    void delete(final V entity);

    void deleteById(final K entityId);
}
